//
//  LefuProductPlugin+Device.swift
//  Runner
//
//  Created by LanjingMini on 2025/3/13.
//

import Foundation
import PPBluetoothKit
import PPCalculateKit

extension LfProductPlugin {
    
    // 停止搜索设备
    func stopSearchDevice() {
         lefuManager?.stopSearchDevice()
    }
    
    // 开始搜索设备
    func startSearchDevice(){
            print("startSearchDevice")
         lefuManager?.startSearchDevice()
    }
    
    // 开始连接
    func startConnDevice(_ device: PPBluetoothAdvDeviceModel!){
         print("startConnDevice")
        lefuManager?.startConnDevice(device)
    }

    // 开启服务
    func startService(){
        lefuManager = LfManager()
        print("startService")
        lefuManager?.startService()
    }
    
    
    func closeService(){
        // lefuManager?.stopService()
        // lefuManager = nil
    }
    
    
}
